import {
	httpGet,
	httpPost
} from "../utils/request";

// 小程序授权获取手机号登录
export const loginByPhoneApi = (data, isLoading = false) => httpPost('/residents/loginByPhone', data, isLoading);
// 手机密码登录
export const loginByPasswordApi = (data) => httpPost('/residents/login', data);
// 居民注册
export const registerApi = (data) => httpPost('/residents/register', data);
// 根据 token 获取用户信息
export const getUserInfoApi = () => httpGet('/residents/getUserInfo');
// 查询机构
export const getOrganizationsApi = (data) => httpPost('/organizations/search', data);
// 查询团队
export const getTeamApi = (data) => httpPost('/teams/search', data);
// 查询医生
export const getDoctorApi = (data) => httpPost('/doctors/search', data);
//查询居民关系 http://nocat.life:3012/relations/search
export const getRelationsSearchApi = (data) => httpPost('/relations/search', data);